package com.atguigu.eduservice.client;

import com.atguigu.commonutils.R;
import org.springframework.stereotype.Component;
import org.springframework.web.multipart.MultipartFile;

/**
 * Hystrix熔断器实现类
 */
@Component
public class OssFileDegradeFeignClient implements OssClient{

    @Override
    public R uploadOssFile(MultipartFile file) {
        return R.error().message("time out");
    }
}
